package cn.easybuy.service;

import java.sql.SQLException;
import java.util.List;

import cn.easybuy.entity.User;

public interface UserService {
	//閿熸枻鎷峰綍
	public User loginUser(String user,String pwd) throws Exception;
	//閻劍鍩涢崥宥嗘Ц閸氾附鏁為崘锟�	
	public int  loginNameNum(String loginName) throws Exception; 
	//娉ㄩ敓鏂ゆ嫹
	public int registerUser(User userutil) throws Exception;
	
	public List<User> selectAll() throws Exception;

	public List<User> selectUser(int id) throws Exception;
	
	public List<User> selectUser(String name) throws Exception;
	
	public List<User> selectUserInfo(String name) throws Exception;
	
	public List<User> selectUserInfo2(String name) throws Exception;
	
	public int delUser(int id) throws Exception;//鍒犻櫎鐢ㄦ埛
	
	public int addUser(User user) throws Exception;//鏂板鐢ㄦ埛
	
	public int updateUser(User user) throws Exception;
	
	public int updatePwd(int id,String password) throws Exception;

}
